import { getCurrentInstance } from 'vue'

/**
 * 获取 app 实例上的全局属性 => Vue.prototype
 * Vue.prototype.xxx
 */
export function useInstance() {
  return getCurrentInstance()?.appContext.config.globalProperties as any
}
